import request from '@/utils/request'

/**
 * 查询部门树
 * @param model
 * @returns {*}
 */
const querySysDepartmentTree = (model) => {
  return request({
    url: '/api/SysDepartment/querySysDepartmentTree',
    method: 'GET',
    params: model
  })
}

/**
 * 查询部门列表
 * @param model
 * @returns {*}
 */
const querySysDepartmentList = (model) => {
  return request({
    url: '/api/SysDepartment/querySysDepartmentList',
    method: 'GET',
    params: model
  })
}

export default {
  querySysDepartmentList,
  querySysDepartmentTree
}
